package cn.tdeu.spring.life;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestLife {
    public static void main(String[] args) {
        //ApplicationContext
        AnnotationConfigApplicationContext context  = new AnnotationConfigApplicationContext
                ("cn.tdeu.spring.life");
        Life bean = context.getBean(Life.class);
        System.out.println(bean);
        System.out.println("4.开发者使用");
        context.close();
    }
}
